/******************************************************************************
* File description: settingexportui.cpp
* Function: 设置-导出页面
* Current Version: 1.0.0
* Author: 张宇轩
* Date: 2024-08-30
*  -----
*  Copyright by 博坤生物 .
 *****************************************************************************/
#include "settingexportui.h"

SettingExportUI::SettingExportUI() {
    // 初始化
    this->setResizeMode(QQuickWidget::SizeRootObjectToView);
    this->setSource(QUrl("qrc:/SettingExport.qml"));
    rootObj = this->getRootObject();
    if(rootObj){
        connect(rootObj, SIGNAL(settingReturnSig()), this, SIGNAL(settingReturnSig()));
    }
}

SettingExportUI::~SettingExportUI() {}

/**
 * @brief getContext 获取qmlcontext
 * @return qmlContext
 */
QQmlContext* SettingExportUI::getContext() const
{
    return this->rootContext();
}

/**
 * @brief getRootObject 获取rootObject
 * @return rootObject
 */
QObject* SettingExportUI::getRootObject() const
{
    return (QObject*)this->rootObject();
}

